package com.example.myapplication2.dataBase;


import androidx.room.Database;
import androidx.room.RoomDatabase;
import com.example.myapplication2.Dao.BookDao;
import com.example.myapplication2.POJO.Book;

//exportSchema 数据库更新日志功能,同时需要指定json保存路径
@Database(entities = {Book.class},version = 1,exportSchema = true)
public abstract class BookDataBase extends RoomDatabase {
    //获取某张表的持久化对象
    public abstract BookDao bookDao();

}
